<?php if (basename(__FILE__) == basename($_SERVER['PHP_SELF'])) header("Location: index.php");  ?>
<?php require_once("sdk/facebook_header.php"); ?>
<?php if( DEBUG && REQUIRE_LIKE ) { $like = true; } if ( REQUIRE_LIKE && !$like ) { header("Location: like.php"); } ?>
<!DOCTYPE HTML>
<html lang="ka">
    <head>
        <meta charset="UTF-8">    
        <?php if( !DEBUG && REDIRECT ): ?>
        <script type="text/javascript">
		    var url = '<?php echo FB_PAGE_URL; ?>'
		    if(top === self) {
				top.location.href = url;
		    }
		</script>
		<?php endif; ?>
		<link rel="stylesheet" type="text/css" href="./media/css/main.css" media="all" />
        <link rel="stylesheet" type="text/css" href="./media/css/style.css" media="all" />
        <!--[if IE 7]>
        	<link rel="stylesheet" type="text/css" href="media/css/ie7.css" media="all" />
        <![endif]-->
		<?php if( DEBUG ) : ?> 
		<style type="text/css">
			html, body { overflow:auto; }
		</style>
		<?php endif; ?>
        <title><?php echo TITLE; ?></title>
    </head>
    <body>
        <div id="wrapper">
            <div id="header" class="clearfix">
                <div id="navigation" class="clearfix">
                    <ul>
                        <li<?php echo ( basename($_SERVER['PHP_SELF']) == "index.php" ) ? ' class="active"' : ''; ?>><a href="index.php" title="მთავარი">მთავარი</a></li>
                        <li<?php echo ( basename($_SERVER['PHP_SELF']) == "about.php" ) ? ' class="active"' : ''; ?>><a href="about.php" title="ჩვენ შესახებ">ჩვენ შესახებ</a></li>
                        <li<?php echo ( basename($_SERVER['PHP_SELF']) == "applications.php" ) ? ' class="active"' : ''; ?>><a href="applications.php" title="აპლიკაციები">აპლიკაციები</a></li>
                    </ul>
                </div><!-- #navigation -->
                <div id="logo">                	
                    <a href="<?php echo ( LOGO_ON_HOME ) ? "index.php" : LINK;  ?>" <?php echo ( LOGO_ON_HOME ) ? '' : 'target="_blank"';  ?> title="<?php echo COMPANY; ?>"><?php echo COMPANY; ?></a>
                </div><!-- #logo -->
            </div><!-- #header -->  
			<?php require_once("media.php"); ?>
            <div id="content">            